From 9adbdefe83357153950d48f966bd2610a4ca2785 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 20 Mar 2015 20:08:13 -0700 Subject: [PATCH] Fix fingerprints of build scripts that aren't compiled --- src/cargo/ops/cargo_rustc/fingerprint.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cargo/ops/cargo_rustc/fingerprint.rs b/src/cargo/ops/cargo_rustc/fingerprint.rs index a88ad00ae..bbf1c15e0 100644 --- a/src/cargo/ops/cargo_rustc/fingerprint.rs +++ b/src/cargo/ops/cargo_rustc/fingerprint.rs @@ -169,7 +169,11 @@ fn calculate<'a, 'b>(cx: &mut Context<'a, 'b>, profile)); // Next, recursively calculate the fingerprint for all of our dependencies. + // Skip the fingerprints of build scripts as they may not always be + // available and the dirtiness propagation for modification is tracked + // elsewhere let deps = try!(cx.dep_targets(pkg, target, profile).into_iter() + .filter(|&(_, t, _)| !t.is_custom_build()) .map(|(pkg, target, profile)| { let kind = match kind { Kind::Host => Kind::Host, -- 2.30.2